export interface BasicInfo {
  supplierNum: number
  orderInNum: number
  orderInAmount: number
  customerNum: number
  orderOutNum: number
  orderOutYoyNum: number
  orderOutAmount: number
  orderOutYoyAmount: number
  lowInventoryNum: number
  orderOutOverdueNum: number
  outstandingReceivablesNum: number
}

interface Data {
  time: string
  value: string
}

export interface ElectricityInfo {
  electricityDay: number
  power: number
  electricityYear: number
  electricityMonth: Data[]
  electricityMonthYoy: Data[]
  /** 电压谐波率 */
  vub: Data[]
  /** 电流谐波率 */
  cub: Data[]
  electricityF: number
  electricityP: number
  electricityG: number
}

export interface EquipmentVo {
  name: string
  number: string
  value: number | null
  status: 0 | 1
}

export interface EquipmentTypeVo {
  key: string
  value: string
  list: EquipmentVo[]
}

export interface EquipmentInfoV2Vo {
  equipmentTotal: number
  equipmentRunNum: number
  typeList: EquipmentTypeVo[]
}

interface SaveOrUpdateIndicatorParams {
  id?: number
  pointId: number
  indicatorCode: string
  indicatorName: string
  parentId: number
  /** 指标类别 */
  indicatorType: string
  color: string
  shape: string
  unit: string
  unitId: number
  /** 是否虚拟指标 0 否，1 是 */
  // isVirtually: 0 | 1;
  /** 倍率 */
  indicatorMultiple: number
  /** '能源品种ID' */
  energyId: number
  /** 指标编码 */
  indicatorNumber: string
  /** 测点编码 */
  measuringPointNumber: string
  toolsId: number
  toolName: string
  /** 来源 0 手动录入，1 计量器具录入，2 统计指标录入 */
  source: number
}

export interface IndicatorInfo
  extends SaveOrUpdateIndicatorParams {
  unitName: string
  indicatorTypeName: string
  indicatorType: string
  /** '统计类型 1 累加，2 表头' */
  statisticalType: 1 | 2
  statisticalName: string
  /** '是否设置告警 0 否，1 是’ */
  isWarning: 0 | 1

  pointFullName?: string
  indicatorDataStoreCoreList?: any[]
}
